<?php
/**
 * 比较两个数组是否相等
 */
function companyarray($data,$data1){
    foreach($data as $column=>$value){
        foreach($data1 as $column1=>$value1){
            if($column==$column1 && $value!=$value1)
                return false;
        }
    }
    return true;
}